﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace MySqlStudent.UI.Models
{
    public class Student
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public MajorEnum? Marjor { get; set; }
        public string Email { get; set; }
        public string PhonePath { get; set; }

        [NotMapped]
        public string EncryptedId { get; set; }

        // 入学时间
        public DateTime EnrollmentDate { get; set; }

        // 导航属性
        public ICollection<StudentCourse> StudentCourses { get; set; }
    }
}